import service from '@/utils/request'

export const userLogin = (data) => {
  return service({
    method: 'post',
    url: '/users/checkLogin',
    data
  })
}
export const userRegister = (data) => {
  return service({
    method: 'post',
    url: '/users/add',
    data
  })
}
export const getUsersList = (params) => {
  return service({
    method: 'get',
    url: '/users/list',
    params
  })
}

export const delUsers = (params) => {
  return service({
    method: 'get',
    url: '/users/del',
    params
  })
}
export const batchDelUsers = (params) => {
  return service({
    method: 'get',
    url: '/users/batchdel',
    params
  })
}
